package com.warm.base.design.b_strategy;

/**
 * @Date: 2019/11/21 13:54
 * @Author: LChuang
 * @Description:
 */
public class Context {

    Strategy strategy;

    public Context(Strategy strategy){
        this.strategy = strategy;
    }

    /**
     * 上下文接口
     */
    public void contextInterface(){
        strategy.algorithm();
    }
}
